﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ajaxcalendar.ascx.cs"
    Inherits="Presentation.Controls.ajaxcalendar" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div>
    <asp:Label ID="Label" runat="server" Text=""></asp:Label>
    <br />
    <asp:Image ID="Image" runat="server" ImageUrl="~/Images/Calendar.png" /><asp:TextBox
        ID="TextBox" runat="server" SkinID="adminFormTextBoxSkin"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator" runat="server" Display="Dynamic"
        CssClass="requiredValidator" ControlToValidate="TextBox" ErrorMessage="(*) Requerido"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator" runat="server" ErrorMessage="(*) Seleccione una fecha"
        Display="Dynamic" CssClass="requiredValidator" ControlToValidate="TextBox" ValidationExpression="^([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.][0-9]{4}$"></asp:RegularExpressionValidator>
    <asp:CalendarExtender ID="CalendarExtender" runat="server" TargetControlID="TextBox"
        PopupPosition="BottomLeft" PopupButtonID="Image" Format="dd/MM/yyyy">
    </asp:CalendarExtender>
</div>
